<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:include src="./login.xhtml" />
<ui:include src="./menu.xhtml" />

<h:form>
    <h:commandLink value="Atualizar" action="#{artigoController.atualizar}" />
    <h:dataTable value="#{artigoController.artigoList}" var="artigo">
        <h:column>
            <h2><h:outputLabel value="#{artigo.assunto}" /></h2><br/>
            <p><h:outputLabel value="#{artigo.texto}" /></p>
            <p><h:outputLabel value="#{artigo.usuario.email}" /></p>
        </h:column>
    </h:dataTable>
</h:form>

</html>